/**
 * @author kco1989
 * @email kco1989@qq.com
 * @date 2019-11-29 10:22
 */
import UserApi from "@/api/modules/userApi";
import CommonApi from "@/api/modules/commonApi";
import GoodsApi from "@/api/modules/goodsApi";
import FishApi from "@/api/modules/fishApi";
import AgentApi from "@/api/modules/agentApi";
import MerchantApi from "@/api/modules/merchantApi";
import TradeApi from "@/api/modules/tradeApi";
import TerminalApi from "@/api/modules/terminalApi";
import ActivityApi from "@/api/modules/activityApi";
import ProfitManage from "@/api/modules/profitManage";

export {
	UserApi,
	CommonApi,
	GoodsApi,
	FishApi,
	AgentApi,
	MerchantApi,
	TradeApi,
	TerminalApi,
	ActivityApi,
	ProfitManage
};


// const files = require.context('./modules', false, /\.ts$/);
// const isTestDebug = process.env.VUE_APP_TEST_DEBUG === 'true';
// const modules: {} = {};
// files.keys().forEach((key) => {
// 	if (key === './index.ts') return;
// 	if (key === './test.ts' && !isTestDebug) return;
// 	const vuexObj = files(key);
//
// 	let module = key.replace(/\.\/(.*?)\.ts/, "$1");
// 	module = module.substr(0, 1).toUpperCase() + module.substr(1);
// 	// @ts-ignore
// 	modules[module] = vuexObj.default;
// });
// debugger;
// console.log("modules --> %o", modules);
// export modules;
